<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <!-- hexo-inject:begin --><!-- hexo-inject:end --><meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#49b1f5">
<meta name="generator" content="Hexo 5.3.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/favicon-180x180-yaowan.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-yaowan.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-yaowan.png">
  <link rel="mask-icon" href="/images/logo-yaowan.svg" color="#49b1f5">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.css">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/pace-js@1/themes/blue/pace-theme-minimal.css">
  <script src="//cdn.jsdelivr.net/npm/pace-js@1/pace.min.js"></script>

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"zhouyuqian.com","root":"/","scheme":"Mist","version":"7.7.2","exturl":false,"sidebar":{"position":"right","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":"default","style":"flat"},"back2top":{"enable":true,"sidebar":false,"scrollpercent":true},"bookmark":{"enable":true,"color":"#49b1f5","save":"auto"},"fancybox":true,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":"valine","storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":"ture"},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="在 Ubuntu20.04 上安装 Cadence IC617 &amp; MMSIM151 &amp; calibre2015 &amp; INCISIVE152 &amp; ADS2020U2，理论上也适用于其他的 Ubuntu 或 Linux 系统.">
<meta property="og:type" content="article">
<meta property="og:title" content="Cadence IC617 on Ubuntu">
<meta property="og:url" content="https://zhouyuqian.com/2021/03/07/VirtuosoOnUbuntu/index.html">
<meta property="og:site_name" content="Fitz&#39;s Blog - 快乐学习每一天">
<meta property="og:description" content="在 Ubuntu20.04 上安装 Cadence IC617 &amp; MMSIM151 &amp; calibre2015 &amp; INCISIVE152 &amp; ADS2020U2，理论上也适用于其他的 Ubuntu 或 Linux 系统.">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://pic.zhouyuqian.com/img/20210727233512.png">
<meta property="og:image" content="https://pic.zhouyuqian.com/img/20210727233513.png">
<meta property="og:image" content="https://pic.zhouyuqian.com/img/20210727233514.png">
<meta property="article:published_time" content="2021-03-07T09:12:33.000Z">
<meta property="article:modified_time" content="2021-12-03T13:07:00.000Z">
<meta property="article:author" content="Fitz">
<meta property="article:tag" content="Software">
<meta property="article:tag" content="IC_design">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://pic.zhouyuqian.com/img/20210727233512.png">

<link rel="canonical" href="https://zhouyuqian.com/2021/03/07/VirtuosoOnUbuntu/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true
  };
</script>

  <title>Cadence IC617 on Ubuntu | Fitz's Blog - 快乐学习每一天</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript><!-- hexo-inject:begin --><!-- hexo-inject:end -->

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <!-- hexo-inject:begin --><!-- hexo-inject:end --><div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <div>
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Fitz's Blog - 快乐学习每一天</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>


<nav class="site-nav">
  
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-fw fa-user"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-fw fa-th"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>归档</a>

  </li>
        <li class="menu-item menu-item-ariang">

    <a href="/AriaNg/" rel="section"><i class="fa fa-fw fa-cloud-download"></i>AriaNg</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>

</nav>
  <div class="site-search">
    <div class="popup search-popup">
    <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocorrect="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result"></div>

</div>
<div class="search-pop-overlay"></div>

  </div>
</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>
  <div class="reading-progress-bar"></div>
  <a role="button" class="book-mark-link book-mark-link-fixed"></a>

  <a href="https://github.com/Starrynightzyq" class="github-corner" title="Follow me on GitHub" aria-label="Follow me on GitHub" rel="noopener" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content">
            

  <div class="posts-expand">
      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block " lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://zhouyuqian.com/2021/03/07/VirtuosoOnUbuntu/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.jpg">
      <meta itemprop="name" content="Fitz">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Fitz's Blog - 快乐学习每一天">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          Cadence IC617 on Ubuntu
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2021-03-07 17:12:33" itemprop="dateCreated datePublished" datetime="2021-03-07T17:12:33+08:00">2021-03-07</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="fa fa-calendar-check-o"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2021-12-03 21:07:00" itemprop="dateModified" datetime="2021-12-03T21:07:00+08:00">2021-12-03</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/Software/" itemprop="url" rel="index"><span itemprop="name">Software</span></a>
                </span>
            </span>

          <br>
            <span class="post-meta-item" title="本文字数">
              <span class="post-meta-item-icon">
                <i class="fa fa-file-word-o"></i>
              </span>
                <span class="post-meta-item-text">本文字数：</span>
              <span>14k</span>
            </span>
            <span class="post-meta-item" title="阅读时长">
              <span class="post-meta-item-icon">
                <i class="fa fa-clock-o"></i>
              </span>
                <span class="post-meta-item-text">阅读时长 &asymp;</span>
              <span>13 分钟</span>
            </span>
            <div class="post-description">在 Ubuntu20.04 上安装 Cadence IC617 & MMSIM151 & calibre2015 & INCISIVE152 & ADS2020U2，理论上也适用于其他的 Ubuntu 或 Linux 系统.</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h1 id="cadence-reference">Cadence Reference</h1>
<p>[1.0] <a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/354374816">Ubuntu20.04 安装Cadence IC617(HotFix)，Spectre，Calibre，Xceliummain</a></p>
<p>[1.1] <a target="_blank" rel="noopener" href="https://my.oschina.net/propagator/blog/3166272">ubuntu18.04安装cadence virtuoso</a></p>
<p>[1.2] <a target="_blank" rel="noopener" href="https://blog.csdn.net/yy345730585/article/details/90407408">在 CentOS7 下安装 Cadence IC验证平台 INCISIVE152</a></p>
<p>可能出现的问题及解决方法：</p>
<p>[2] <a target="_blank" rel="noopener" href="http://bbs.eetop.cn/thread-877866-1-1.html">...install.ixl/mgc_install: No such file or directory</a></p>
<p>[3] <a target="_blank" rel="noopener" href="http://bbs.eetop.cn/thread-400786-1-1.html">ERROR: The OA2.2 library directory (/home/hushuai/cadence/installs/IC616/oa_v22.43.018/lib/linux_rhel40_gcc44x_32/opt) does not seem to exist.</a></p>
<p>[4] <a target="_blank" rel="noopener" href="http://bbs.eetop.cn/thread-325949-1-1.html"><em>WARNING</em> Unable to find font name: "-<em>-courier-medium-r-</em>-<em>-12-</em>".</a></p>
<p>[6] <a target="_blank" rel="noopener" href="http://bbs.eetop.cn/archiver/tid-635921.html">*ld: /usr/lib/x86_64-linux-gnu/crti.o: unrecognized relocation (0x2a) in section `.init'</a></p>
<p>[7] <a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_19734597/article/details/102943559">/usr/include/math.h:27:36: fatal error: bits/libc-header-start.h: No such file or directory</a></p>
<p>[8] <a target="_blank" rel="noopener" href="http://bbs.eetop.cn/thread-768205-1-1.html">WARNING The glibc version of this host does not appear to be a Cadence supported version.</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 准备工作</span></span><br><span class="line">sudo apt-get install ksh csh openjdk-8-jre openjdk-8-jdk xterm libncursesw5-dev libxtst6:i386 libxi6:i386 libstdc++6 lib32stdc++6 python net-tools xfonts-75dpi xfonts-100dpi</span><br><span class="line"><span class="comment"># </span></span><br><span class="line">wget http://ftp.br.debian.org/debian/pool/main/g/glibc/multiarch-support_2.28-10_amd64.deb</span><br><span class="line">sudo dpkg -i multiarch-support_2.28-10_amd64.deb</span><br><span class="line">wget http://launchpadlibrarian.net/183708483/libxp6_1.0.2-2_amd64.deb</span><br><span class="line">sudo dpkg -i libxp6_1.0.2-2_amd64.deb</span><br><span class="line"><span class="comment"># 查看Java安装情况</span></span><br><span class="line">java -version</span><br><span class="line"><span class="comment"># 配置Java环境变量</span></span><br><span class="line"><span class="built_in">export</span> JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64</span><br><span class="line"><span class="built_in">export</span> JRE_HOME=<span class="variable">$JAVA_HOME</span>/jre</span><br><span class="line"><span class="built_in">export</span> CLASSPATH=<span class="variable">$JAVA_HOME</span>/lib:<span class="variable">$JRE_HOME</span>/lib:<span class="variable">$CLASSPATH</span></span><br><span class="line"><span class="built_in">export</span> PATH=<span class="variable">$JAVA_HOME</span>/bin:<span class="variable">$JRE_HOME</span>/bin:<span class="variable">$PATH</span></span><br><span class="line"><span class="comment"># 添加redhat-release 骗过cadence</span></span><br><span class="line">sudo <span class="built_in">echo</span> <span class="string">&quot;Red Hat Enterprise Linux release 6.12&quot;</span> &gt; /etc/redhat-release</span><br><span class="line">sudo chmod 777 /etc/redhat-release</span><br><span class="line"><span class="comment">##创建临时文件夹</span></span><br><span class="line">sudo ln -s /tmp /usr/tmp</span><br><span class="line"><span class="comment">##软链接</span></span><br><span class="line"><span class="comment">##sudo ln -s /usr/bin/mawk /bin/awk</span></span><br><span class="line"><span class="comment">##sudo ln -s /usr/bin/basename /bin/basename</span></span><br><span class="line">sudo ln -s /lib/x86_64-linux-gnu/libncursesw.so.5.9 /lib/libtermcap.so.2</span><br><span class="line">sudo ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.1 /lib/x86_64-linux-gnu/libcrypto.so.6</span><br></pre></td></tr></table></figure>
<h1 id="ads-reference">ADS Reference</h1>
<p>[1] <a target="_blank" rel="noopener" href="http://bbs.eetop.cn/thread-880091-1-1.html">快递：Linux安装ADS2020update2.0及破解</a></p>
<p>[2] <a target="_blank" rel="noopener" href="http://bbs.eetop.cn/thread-560408-1-1.html">ubuntu 上装 ADS 2015</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo ./pubkey_verify</span><br><span class="line">sudo ./pubkey_verify -y</span><br></pre></td></tr></table></figure>
<p>然后再安装license</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># sh:1:lmutil:not found  sh:1:lmgrd:not found</span></span><br><span class="line">sudo apt-get isntall lsb-core</span><br></pre></td></tr></table></figure>
<h1 id="ads-dynamic-link">ADS Dynamic Link</h1>
<blockquote>
<p>http://literature.cdn.keysight.com/litweb/pdf/ads2008/dynlnkug/ads2008/Getting_Started_with_RFIC_Dynamic_Link.html</p>
<p>http://edadownload.software.keysight.com/eedl/ads/2011/pdf/dynlnkug.pdf</p>
<p>https://zhuanlan.zhihu.com/p/355213307</p>
</blockquote>
<p>在 ADS 和 Cadence 都正确安装且可以正常打开的情况下：</p>
<p>首先要在 <em>.cdsinit</em> 文件里添加：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">load(<span class="string">&quot;/opt/ADS2020_update2/idf/config/.cdsinit&quot;</span>)</span><br></pre></td></tr></table></figure>
<p>然后：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">source</span> <span class="variable">$HPEESOF_DIR</span>/bin/setCSF.ksh</span><br></pre></td></tr></table></figure>
<p>然后启动 virtuoso，在CIW中可发现ADS已成功加载：</p>
<figure>
<img src="https://pic.zhouyuqian.com/img/20210727233512.png" alt="截屏2021-04-20 下午4.40.58"><figcaption aria-hidden="true">截屏2021-04-20 下午4.40.58</figcaption>
</figure>
<p>在 schematic 中选择 Launch-ADS Dynamic Link，就会弹出ADS窗口：</p>
<figure>
<img src="https://pic.zhouyuqian.com/img/20210727233513.png" alt="截屏2021-04-20 下午4.43.01"><figcaption aria-hidden="true">截屏2021-04-20 下午4.43.01</figcaption>
</figure>
<h1 id="modelsim">Modelsim</h1>
<h2 id="prepare-install-files">Prepare install files</h2>
<p>Unwaper this three files and you will get <code>Mentor Graphics ModelSim SE 2020.4 Linux64</code></p>
<figure class="highlight apache"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">Mentor_Graphics_ModelSim_SE_2020</span>.<span class="number">4</span>_Linux<span class="number">64</span>.part<span class="number">1</span>_Downloadly.ir</span><br><span class="line"><span class="attribute">Mentor_Graphics_ModelSim_SE_2020</span>.<span class="number">4</span>_Linux<span class="number">64</span>.part<span class="number">2</span>_Downloadly.ir</span><br><span class="line"><span class="attribute">Mentor_Graphics_ModelSim_SE_2020</span>.<span class="number">4</span>_Linux<span class="number">64</span>.part<span class="number">3</span>_Downloadly.ir</span><br></pre></td></tr></table></figure>
<h2 id="安装">安装</h2>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">chmod +x modelsim-2020.4_Downloadly.ir.aol <span class="comment"># 修改权限</span></span><br><span class="line">sudo ./modelsim-2020.4_Downloadly.ir.aol <span class="comment"># 安装</span></span><br></pre></td></tr></table></figure>
<blockquote>
<p><strong>注意：只安装 64 位的部分！</strong></p>
</blockquote>
<h2 id="生成-license-file">生成 license file</h2>
<p>使用 wine 运行 <code>MentorKG.exe</code> 文件，首先要安装 wine：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get install wine</span><br><span class="line">sudo dpkg --add-architecture i386 &amp;&amp; sudo apt-get update &amp;&amp; sudo apt-get install wine32</span><br></pre></td></tr></table></figure>
<p>在成功安装Wine之后，需要在第一次使用之前使用下面的命令初始化wine配置文件：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo winecfg</span><br></pre></td></tr></table></figure>
<p>然后 patch，<code>&lt;Modelsim install path&gt;</code> 在我的电脑上为 <code>/opt/ModelSim</code>：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo cp MentorKG.exe &lt;Modelsim install path&gt;/modeltech/linux_x86_64 <span class="comment"># 复制 MentorKG.exe 到 modelsim 安装目录下</span></span><br><span class="line">sudo wine MentorKG.exe -patch .</span><br></pre></td></tr></table></figure>
<p>保存生成的 license 为 <code>license.dat</code>，并选择文件编码格式为 <code>Unicode(UTF-8)</code>，位置 <code>/opt/ModelSim/license.dat</code></p>
<h2 id="patch">Patch</h2>
<p>ref:http://bbs.eetop.cn/thread-888767-1-1.html</p>
<p>把 sfk 和 patch_calibre2011_linux 文件拷贝到 modelsim 的安装路径下(同级有modeltech和_msidata文件夹)</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">sudo cp patch_calibre2011_linux sfk /opt/ModelSim</span><br><span class="line">sudo chmod 755 patch_calibre2011_linux sfk    <span class="comment">#chmod patch 和 sfk文件权限均为755</span></span><br><span class="line">sudo ./patch_calibre2011_linux    <span class="comment">#执行本命令，其实就是调用了一次sfk</span></span><br></pre></td></tr></table></figure>
<blockquote>
<p>报错：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">./sfk: error <span class="keyword">while</span> loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory</span><br></pre></td></tr></table></figure>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">locate libstdc++.so.5  <span class="comment">#发现系统中还真的没这个运行库</span></span><br><span class="line"><span class="comment"># 这是一个古老的库 所以安装 </span></span><br><span class="line"><span class="comment"># sudo apt-get install libstdc++5</span></span><br><span class="line">sudo apt-get install libstdc++5:i386</span><br></pre></td></tr></table></figure>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">sfk rep -yes -bin /41574989CF41564589C6415541544189D455534889FB4881ECF8000000488B8798020000/4831c0c3CF41564589C6415541544189D455534889FB4881ECF8000000488B8798020000/ -dir .</span><br><span class="line">sfk rep -yes -bin /41574989CF41564589C6415541544189D455534889FB4881ECF8000000488B8798020000/4831c0c3CF41564589C6415541544189D455534889FB4881ECF8000000488B8798020000/ -dir .</span><br><span class="line">sfk rep -yes -bin /CC88D700000000001300000000000000000000000700070000000000210005007C6B610100000000000000000000000000000000000000000000000000000000A0D2D700000000000BFFFFFF00000000/CC88D7000000000013000000FFFFFFFF000000000700070000000000210005007C6B610100000000000000000000000000000000000000000000000000000000A0D2D700000000000BFFFFFF00000000/ -dir . -file vcom</span><br></pre></td></tr></table></figure>
<p>最后的log中出现 2 changed 就成功了。</p>
</blockquote>
<h2 id="修改环境变量">修改环境变量</h2>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># modelsim</span></span><br><span class="line"><span class="built_in">export</span> MTI_VCO_MODE=64</span><br><span class="line"><span class="built_in">export</span> LM_LICENSE_FILE=/opt/ModelSim/license.dat</span><br><span class="line"><span class="built_in">export</span> PATH=<span class="variable">$PATH</span>:/opt/ModelSim/modeltech/linux_x86_64</span><br></pre></td></tr></table></figure>
<p>执行 <code>vsim</code></p>
<blockquote>
<p>PS: 要修改网卡名称为 eth0</p>
<blockquote>
<p>sudo vim /etc/default/grub</p>
<p>找到GRUB_CMDLINE_LINUX=""</p>
<p>改为GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"</p>
<p>然后sudo grub-mkconfig -o /boot/grub/grub.cfg</p>
</blockquote>
<p><strong>重启</strong>后，网卡名称就会变成了eth0</p>
</blockquote>
<blockquote>
<p>dash 改为 bash</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo dpkg-reconfigure dash <span class="comment"># 选 No</span></span><br></pre></td></tr></table></figure>
</blockquote>
<h1 id="hfss">HFSS</h1>
<blockquote>
<p>https://www.cfd-online.com/Forums/ansys/199190-ansys-18-2-ubuntu-16-04-installation-guide.html</p>
</blockquote>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br></pre></td><td class="code"><pre><span class="line">$ sudo ./install -silent -install_dir /opt/ansys_inc</span><br><span class="line">[sudo] password <span class="keyword">for</span> meow: </span><br><span class="line"><span class="comment">### Warning: Dependency package bzip2-libs is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package expat is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package fontconfig is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package freetype is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package giflib is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package glib2 is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package glibc is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package libdrm is not installed.</span></span><br><span class="line"><span class="comment">### Warning: One of the following alternate dependencies are not installed: libjpeg libjpeg-turbo</span></span><br><span class="line"><span class="comment">### Warning: Dependency package libpng is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package libselinux is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package libtiff is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package libX11 is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package libXau is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package libxcb is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package libXdamage is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package libXext is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package libXfixes is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package libXft is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package libXmu is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package libXp is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package libXrender is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package libXt is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package libXxf86vm is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package mesa-dri-drivers is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package mesa-libGL is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package mesa-libGLU is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package nss-softokn-freebl is not installed.</span></span><br><span class="line"><span class="comment">### Warning: Dependency package zlib is not installed.</span></span><br><span class="line">/mnt/hgfs/IC_Design/share/HFSS/ELECTRONICS_180_LINX64/Electronics_180_linx64/Linux/install.exe: error <span class="keyword">while</span> loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory</span><br></pre></td></tr></table></figure>
<h2 id="安装必要的软件">安装必要的软件</h2>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt install xterm lsb csh ssh rpm xfonts-base xfonts-100dpi xfonts-100dpi-transcoded xfonts-75dpi xfonts-75dpi-transcoded xfonts-cyrillic libmotif-common mesa-utils libxm4 libxt6 libxext6 libxi6 libx11-6 libsm6 libice6  libxxf86vm1 libpng16-16 libtiff5 gcc g++ libstdc++6 libstdc++5</span><br></pre></td></tr></table></figure>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># libpng12-0</span></span><br><span class="line">wget http://ppa.launchpad.net/linuxuprising/libpng12/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1+1~ppa0~focal_amd64.deb</span><br><span class="line">sudo dpkg -i libpng12-0_1.2.54-1ubuntu1.1+1~ppa0~focal_amd64.deb</span><br></pre></td></tr></table></figure>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># libxp</span></span><br><span class="line">wget ftp.us.debian.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb</span><br><span class="line">sudo dpkg -i libxp6_1.0.2-2_amd64.deb</span><br></pre></td></tr></table></figure>
<h2 id="更新索引">更新索引</h2>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># updatedb 用来创建或更新 slocate/locate 命令所必需的数据库文件</span></span><br><span class="line"><span class="comment"># updatedb 命令的执行过程较长，因为在执行时它会遍历整个系统的目录树，并将所有的文件信息写入 slocate/locate 数据库文件中</span></span><br><span class="line"><span class="comment"># Update the database with:</span></span><br><span class="line">sudo updatedb</span><br></pre></td></tr></table></figure>
<h2 id="创建超链接">创建超链接</h2>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/lib/libGL.so</span><br><span class="line">sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/lib/libGL.so.1</span><br><span class="line">sudo ln -s /usr/lib/x86_64-linux-gnu/libGLU.so.1 /usr/lib/libGLU.so</span><br><span class="line">sudo ln -s /usr/lib/x86_64-linux-gnu/libXm.so.4 /usr/lib/libXm.so</span><br><span class="line">sudo ln -s /usr/lib/x86_64-linux-gnu/libXm.so.4 /usr/lib/libXm.so.3</span><br><span class="line">sudo ln -s /usr/lib/x86_64-linux-gnu/libXp.so.6 /usr/lib/libXp.so</span><br><span class="line">sudo ln -s /usr/lib/x86_64-linux-gnu/libXt.so.6 /usr/lib/libXt.so</span><br><span class="line">sudo ln -s /usr/lib/x86_64-linux-gnu/libXext.so.6 /usr/lib/libXext.so</span><br><span class="line">sudo ln -s /usr/lib/x86_64-linux-gnu/libXi.so.6 /usr/lib/libXi.so</span><br><span class="line">sudo ln -s /usr/lib/x86_64-linux-gnu/libX11.so.6 /usr/lib/libX11.so</span><br><span class="line">sudo ln -s /usr/lib/x86_64-linux-gnu/libSM.so.6 /usr/lib/libSM.so</span><br><span class="line">sudo ln -s /usr/lib/x86_64-linux-gnu/libICE.so.6 /usr/lib/libICE.so</span><br><span class="line">sudo ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib/libgcc.so</span><br><span class="line">sudo ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib/libc.so</span><br><span class="line">sudo ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6</span><br></pre></td></tr></table></figure>
<h2 id="将默认-sh-改为-bash">将默认 sh 改为 bash</h2>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># Change the command interpreter for shell scripts:</span></span><br><span class="line">sudo dpkg-reconfigure dash</span><br><span class="line"><span class="comment"># Then answer &quot;No&quot; to the question.</span></span><br></pre></td></tr></table></figure>
<h2 id="安装-1">安装</h2>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># install</span></span><br><span class="line"><span class="comment"># sudo ./INSTALL  -silent -install_dir /opt/ansys_inc</span></span><br><span class="line">sudo ./INSTALL</span><br></pre></td></tr></table></figure>
<p>安装位置选择 <em>/opt/ansys_inc</em></p>
<h2 id="破解">破解</h2>
<p>将破解文件夹复制到 <em>/opt/ansys_inc</em> 覆盖原来的文件</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo cp -r ansys_inc /opt</span><br></pre></td></tr></table></figure>
<h2 id="修改权限">修改权限</h2>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">sudo chown -R <span class="variable">$USER</span>:<span class="variable">$USER</span> ~/.ansys</span><br><span class="line">sudo chown -R <span class="variable">$USER</span>:<span class="variable">$USER</span> ~/.config</span><br><span class="line">sudo chown -R 777 /ansys_inc/v202/aisol/WBMWRegistry/</span><br></pre></td></tr></table></figure>
<h2 id="修改通配符不匹配">修改通配符不匹配</h2>
<p>修改 <em>/opt/ansys_inc/v202/CFX/bin/cfx5arch</em></p>
<p>大约在 196 行处有：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">if</span> <span class="built_in">test</span> -n <span class="string">&quot;<span class="variable">$libc_file</span>&quot;</span>; <span class="keyword">then</span></span><br><span class="line"><span class="keyword">case</span> `basename <span class="variable">$libc_file</span> | sed <span class="string">&#x27;s/\.so//g&#x27;</span>` <span class="keyword">in</span></span><br><span class="line">glibc-*|libc-[0123].*) <span class="comment"># this is almost certainly a glibc version</span></span><br></pre></td></tr></table></figure>
<p>在这下面加上：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">libc_file_tmp=`<span class="built_in">echo</span> <span class="variable">$libc_file</span> | sed -e <span class="string">&#x27;s/x86_64-linux-gnu//g&#x27;</span>`</span><br></pre></td></tr></table></figure>
<p>然后将:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">libc_version=`<span class="built_in">echo</span> <span class="variable">$libc_file</span> | sed -e <span class="string">&#x27;s/^[^-]*-//&#x27;</span> -e <span class="string">&#x27;s/\.so//g&#x27;</span>`</span><br></pre></td></tr></table></figure>
<p>改为：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">libc_version=`<span class="built_in">echo</span> <span class="variable">$libc_file_tmp</span> | sed -e <span class="string">&#x27;s/^[^-]*-//&#x27;</span> -e <span class="string">&#x27;s/\.so//g&#x27;</span>`</span><br></pre></td></tr></table></figure>
<figure>
<img src="https://pic.zhouyuqian.com/img/20210727233514.png" alt="截屏2021-04-09 下午5.14.46"><figcaption aria-hidden="true">截屏2021-04-09 下午5.14.46</figcaption>
</figure>
<h2 id="since-ptrace-is-used-to-monitor-intelmpi-cfx-run-set-the-permission-for-all-the-users-just-edit">Since ptrace is used to monitor intelmpi CFX run, set the permission for all the users, just edit</h2>
<p>编辑 <em>/etc/sysctl.d/10-kernel-hardening.conf </em></p>
<p>加入：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">kernel.yama.ptrace_scope = 0</span><br></pre></td></tr></table></figure>
<p>/etc/sysctl.d/10-ptrace.conf</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">kernel.yama.ptrace_scope = 1</span><br><span class="line">-&gt;</span><br><span class="line">kernel.yama.ptrace_scope = 0</span><br></pre></td></tr></table></figure>
<p>/proc/sys/kernel/yama/ptrace_scope</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">1</span><br><span class="line">-&gt;</span><br><span class="line">0</span><br></pre></td></tr></table></figure>
<h2 id="编辑-.bashrc-文件">编辑 <em>.bashrc</em> 文件</h2>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">#ANSYS</span></span><br><span class="line"><span class="built_in">export</span> PATH=<span class="variable">$PATH</span>:/opt/ansys_inc/v202/ansys/bin</span><br><span class="line"><span class="comment">#CFX</span></span><br><span class="line"><span class="built_in">export</span> PATH=<span class="variable">$PATH</span>:/opt/ansys_inc/v202/CFX/bin</span><br><span class="line"><span class="comment">#FLUENT</span></span><br><span class="line"><span class="built_in">export</span> PATH=<span class="variable">$PATH</span>:/opt/ansys_inc/v202/fluent/bin</span><br><span class="line"><span class="comment">#ICEM</span></span><br><span class="line"><span class="built_in">export</span> PATH=<span class="variable">$PATH</span>:/opt/ansys_inc/v202/icemcfd/linux64_amd/bin</span><br><span class="line"><span class="comment">#WORKBENCH</span></span><br><span class="line"><span class="built_in">export</span> PATH=<span class="variable">$PATH</span>:/opt/ansys_inc/v202/Framework/bin/Linux64</span><br><span class="line"><span class="comment">#TurboGrid</span></span><br><span class="line"><span class="built_in">export</span> PATH=<span class="variable">$PATH</span>:/opt/ansys_inc/v202/TurboGrid/bin</span><br><span class="line"><span class="comment">#ANSYS Sevice Manager</span></span><br><span class="line"><span class="built_in">export</span> PATH=<span class="variable">$PATH</span>:/opt/ansys_inc/shared_files/licensing/lic_admin</span><br><span class="line"><span class="comment">#polyflow</span></span><br><span class="line"><span class="built_in">export</span> PATH=<span class="variable">$PATH</span>:/opt/ansys_inc/v202/polyflow/bin</span><br><span class="line"><span class="comment">#more</span></span><br><span class="line"><span class="built_in">alias</span> wb2=<span class="string">&#x27;/ansys_inc/v202/Framework/bin/Linux64/runwb2 -oglmesa&#x27;</span></span><br><span class="line"><span class="built_in">export</span> LD_LIBRARY_PATH=/opt/ansys_inc/v202/Framework/bin/Linux64/Mesa:<span class="variable">$LD_LIBRARY_PATH</span></span><br><span class="line"><span class="built_in">export</span> LANG=en_US.UTF8</span><br><span class="line"><span class="built_in">export</span> FLUENT_ARCH=<span class="string">&#x27;lnamd64&#x27;</span></span><br></pre></td></tr></table></figure>
<h1 id="synopsys-vcsverdi">Synopsys VCS+Verdi</h1>
<blockquote>
<p>Ref:</p>
<ol type="1">
<li><p><a target="_blank" rel="noopener" href="https://blog.csdn.net/huayangshiboqi/article/details/89525723">VCS+Verdi 安装及破解过程(Ubuntu)【1】</a></p></li>
<li><p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_35787848/article/details/112506565">Synopsys license过期</a></p></li>
<li><p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_39117553/article/details/119759213?spm=1001.2101.3001.6650.1&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link">libpng12.so.0: cannot open shared object file: No such file or directory 解决方法</a></p></li>
</ol>
</blockquote>
<p>主要参考 <a target="_blank" rel="noopener" href="https://blog.csdn.net/huayangshiboqi/article/details/89525723">1. VCS+Verdi 安装及破解过程(Ubuntu)【1】</a> 安装，破解时，发现 <em>scl_keygen</em> 的 EXPIRE 的时间最大只能设为 <code>12-dec-2020</code>，这个应该是 license 到期的时间，直接在 <em>scl_keygen</em> 里修改 EXPIRE 的时间后生成的 license 还是不能用，参考 <a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_35787848/article/details/112506565">2. Synopsys license过期</a> 的思路，修改 <em>scl_keygen</em> 文件夹里 <em>Synopsys.src</em> 这个文件里的日期，将所有的 <code>12-dec-2020</code> 改成 <code>12-dec-2030</code>，然后再在 <em>scl_keygen</em> 里修改 EXPIRE 的时间为 <code>12-dec-2030</code>，这样生成的 license 就可以用了。</p>
<p>由于 <a target="_blank" rel="noopener" href="https://blog.csdn.net/huayangshiboqi/article/details/89525723">1. VCS+Verdi 安装及破解过程(Ubuntu)【1】</a> 里提供的 vcs 需要 <code>gcc-4.8</code> 和 <code>g++-4.8</code>，需要单独安装，由于这个版本的 gcc 很老，无法直接使用包管理软件安装，因此需要从源码编译安装，我下载的是 <a target="_blank" rel="noopener" href="http://ftp.gnu.org/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.bz2"><code>gcc-4.8.5</code></a>，不过这个版本的 gcc 使用高版本的 gcc 编译时会出很多问题，解决这些问题参考了以下几篇文章：</p>
<h2 id="gcc-4.8.5-编译安装"><a href="https://zhouyuqian.com/2021/11/30/build-install-gcc-4-8-5/">GCC-4.8.5 编译安装</a></h2>
<blockquote>
<ol type="1">
<li><a target="_blank" rel="noopener" href="https://stackoverflow.com/questions/61945439/how-to-install-compiler-g-4-8-5-in-ubuntu-20-04">https://stackoverflow.com/questions/61945439/how-to-install-compiler-g-4-8-5-in-ubuntu-20-04</a></li>
<li><a target="_blank" rel="noopener" href="https://www.icode9.com/content-3-1202280.html">https://www.icode9.com/content-3-1202280.html</a></li>
<li><a target="_blank" rel="noopener" href="https://www.frank.fyi/archives/336_gcc-compile-error/">https://www.frank.fyi/archives/336_gcc-compile-error/</a></li>
</ol>
</blockquote>
<p>参考第一篇：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 下载gcc</span></span><br><span class="line">wget http://ftp.gnu.org/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.bz2</span><br><span class="line"><span class="comment"># 解压</span></span><br><span class="line">tar -zxvf gcc-4.8.5.tar.bz2</span><br><span class="line"><span class="comment"># 修改 gcc-4.8.5 两处 bug</span></span><br><span class="line">sed -i -e <span class="string">&#x27;s/__attribute__/\/\/__attribute__/g&#x27;</span> gcc-4.8.5/gcc/cp/cfns.h</span><br><span class="line">sed -i <span class="string">&#x27;s/struct ucontext/ucontext_t/g&#x27;</span> gcc-4.8.5/libgcc/config/i386/linux-unwind.h</span><br><span class="line"> </span><br><span class="line"><span class="comment"># 安装依赖三大件，会自动顺序安装gmp、mpfr、mpc</span></span><br><span class="line">gcc-4.8.5/contrib/download_prerequisites</span><br><span class="line"><span class="comment"># 或者</span></span><br><span class="line">sudo apt install make wget git gcc g++ lhasa libgmp-dev libmpfr-dev libmpc-dev flex bison gettext texinfo ncurses-dev autoconf rsync</span><br><span class="line"> </span><br><span class="line"><span class="comment"># 创建编译目录 gcc-4.8.5-build</span></span><br><span class="line">mkdir gcc-4.8.5-build</span><br><span class="line"><span class="built_in">cd</span> gcc-4.8.5-build</span><br><span class="line"> </span><br><span class="line"><span class="comment"># 开始编译安装</span></span><br><span class="line"><span class="variable">$PWD</span>/../gcc-4.8.5/configure --enable-languages=c,c++ --prefix=/usr/<span class="built_in">local</span>/gcc-4.8.5 --enable-shared --enable-plugin --program-suffix=-4.8.5 --disable-multilib</span><br><span class="line">make MAKEINFO=<span class="string">&quot;makeinfo --force&quot;</span> -j</span><br><span class="line"></span><br><span class="line"><span class="comment"># 编译完成后安装</span></span><br><span class="line">sudo make install</span><br></pre></td></tr></table></figure>
<p>编译的过程中会出现一些问题，主要参考了<a target="_blank" rel="noopener" href="https://www.icode9.com/content-3-1202280.html">第二篇文章</a>和<a target="_blank" rel="noopener" href="https://www.frank.fyi/archives/336_gcc-compile-error/">第三篇文章</a>。</p>
<h2 id="vcsverdi-的仿真脚本">vcs+verdi 的仿真脚本</h2>
<p>最后，附上 vcs+verdi 的仿真脚本，运行 <code>make sim</code> 使用 vcs 仿真，运行 <code>make verdi</code> 使用 verdi 查看波形。</p>
<p><em>Makefile</em></p>
<figure class="highlight makefile"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta"><span class="meta-keyword">.PHONY</span>: all vcs file clean</span></span><br><span class="line"></span><br><span class="line">TOP ?= BBPLL_tb</span><br><span class="line"></span><br><span class="line"><span class="keyword">export</span> demo_name=$&#123;TOP&#125;</span><br><span class="line"><span class="keyword">export</span> LD_LIBRARY_PATH=$&#123;VERDI_HOME&#125;/share/PLI/VCS/LINUX64</span><br><span class="line"></span><br><span class="line">SRC_PATH := $&#123;PWD&#125;/../src</span><br><span class="line">FILELIST_FILE := filelist.f</span><br><span class="line"></span><br><span class="line">DAIDIR := /tmp/vcs_run/$&#123;TOP&#125;.daidir</span><br><span class="line">MDIR := /tmp/vcs_run/$&#123;TOP&#125;.csrc</span><br><span class="line"></span><br><span class="line">VCS_FLAGS := -full64 \</span><br><span class="line">truetruetrue+v2k \</span><br><span class="line">truetruetrue-sverilog \</span><br><span class="line">truetruetrue-debug_all \</span><br><span class="line">truetruetrue+<span class="keyword">define</span>+DUMP_FSDB \</span><br><span class="line">truetruetrue+incdir+$&#123;SRC_PATH&#125; \</span><br><span class="line">truetruetrue-f $&#123;FILELIST_FILE&#125; \</span><br><span class="line">truetruetrue-l com.log \</span><br><span class="line">truetruetrue-top $&#123;TOP&#125; \</span><br><span class="line">truetruetrue-o $&#123;TOP&#125; \</span><br><span class="line">truetruetrue-lca -kdb \</span><br><span class="line">truetruetrue-daidir=$&#123;DAIDIR&#125; \</span><br><span class="line">truetruetrue-Mdirectory=$&#123;MDIR&#125; \</span><br><span class="line">truetruetrue-LDFLAGS -Wl,-no-as-needed \</span><br><span class="line">truetruetrue-j8 \</span><br><span class="line">truetruetrue-diag timescale -timescale=1s/1fs</span><br><span class="line"></span><br><span class="line">VERDI_FLAGS := 	+v2k \</span><br><span class="line">truetruetruetrue-sverilog \</span><br><span class="line">truetruetruetrue-f $&#123;FILELIST_FILE&#125; \</span><br><span class="line">truetruetruetrue-top $&#123;TOP&#125; \</span><br><span class="line">truetruetruetrue-ssf $&#123;TOP&#125;.fsdb \</span><br><span class="line">truetruetruetrue-nologo \</span><br><span class="line">truetruetruetrue+incdir+$&#123;SRC_PATH&#125; \</span><br><span class="line">truetruetruetrue-l verdi.log</span><br><span class="line"></span><br><span class="line">SRC_FILES += <span class="variable">$(<span class="built_in">foreach</span> f, <span class="variable">$(SRC_PATH)</span>, $(<span class="built_in">wildcard</span> <span class="variable">$(f)</span>/*.v)</span>)  </span><br><span class="line">SRC_FILES += <span class="variable">$(<span class="built_in">foreach</span> f, <span class="variable">$(SRC_PATH)</span>, $(<span class="built_in">wildcard</span> <span class="variable">$(f)</span>/*.sv)</span>)  </span><br><span class="line"></span><br><span class="line"><span class="comment"># start simulation</span></span><br><span class="line"><span class="section">sim: clean com</span></span><br><span class="line">true./$&#123;TOP&#125; \</span><br><span class="line">true-ucli -i sim.tcl \</span><br><span class="line">true+fsdb+autoflush \</span><br><span class="line">true-l sim.log </span><br><span class="line"></span><br><span class="line"><span class="comment"># start compile</span></span><br><span class="line"><span class="section">com: file</span></span><br><span class="line">truevcs $&#123;VCS_FLAGS&#125;</span><br><span class="line"></span><br><span class="line"><span class="comment"># run verdi</span></span><br><span class="line"><span class="section">verdi: $&#123;TOP&#125;.fsdb</span></span><br><span class="line">trueverdi $&#123;VERDI_FLAGS&#125; &amp;</span><br><span class="line"></span><br><span class="line"><span class="section">file:</span></span><br><span class="line">true-rm -f $&#123;FILELIST_FILE&#125;</span><br><span class="line">truefor filename in $&#123;SRC_FILES&#125;; do \</span><br><span class="line">truetruerealpath $$&#123;filename&#125; | xargs -n 1 -I path bash -c <span class="string">&quot;echo path &gt;&gt; $&#123;FILELIST_FILE&#125;&quot;</span>; \</span><br><span class="line">truedone</span><br><span class="line"></span><br><span class="line"><span class="section">clean:</span></span><br><span class="line">true-rm -rf $&#123;DAIDIR&#125;</span><br><span class="line">true-rm -rf $&#123;MDIR&#125;</span><br><span class="line">true-rm -rf `ls | grep -v <span class="string">&quot;Makefile&quot;</span> | grep -v <span class="string">&quot;sim.tcl&quot;</span> | grep -v <span class="string">&quot;filelist.f&quot;</span> | grep -v <span class="string">&quot;res&quot;</span> | grep -v <span class="string">&quot;wave.rc&quot;</span>`</span><br></pre></td></tr></table></figure>
<p><em>sim.tcl</em></p>
<figure class="highlight tcl"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">global</span> env</span><br><span class="line"><span class="comment"># puts &#x27;$env(demo_name).fsdb&#x27;</span></span><br><span class="line">fsdbDumpfile <span class="string">&quot;$env(demo_name).fsdb&quot;</span></span><br><span class="line"><span class="comment"># fsdbDumpvars 0 &quot;$env(demo_name)&quot;</span></span><br><span class="line">fsdbDumpvars</span><br><span class="line">run <span class="number">2.0</span>ms</span><br><span class="line"><span class="keyword">exit</span></span><br></pre></td></tr></table></figure>

    </div>

    
    
    

    <div>
      
        <div>
    
        <div style="text-align:center;color: #ccc;font-size:14px;">-------The end of this article&nbsp;<i class="fa fa-paw"></i>&nbsp;Thank you for your reading-------</div>
    
</div>
      
    </div>
        

<div>
<ul class="post-copyright">
  <li class="post-copyright-author">
    <strong>本文作者： </strong>Fitz
  </li>
  <li class="post-copyright-link">
    <strong>本文链接：</strong>
    <a href="https://zhouyuqian.com/2021/03/07/VirtuosoOnUbuntu/" title="Cadence IC617 on Ubuntu">https://zhouyuqian.com/2021/03/07/VirtuosoOnUbuntu/</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/zh" rel="noopener" target="_blank"><i class="fa fa-fw fa-creative-commons"></i>BY-NC-SA</a> 许可协议。转载请注明出处！
  </li>
</ul>
</div>


      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/Software/" <i class="fa fa-tag"></i> Software</a>
              <a href="/tags/IC-design/" <i class="fa fa-tag"></i> IC_design</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2021/02/08/PA/" rel="prev" title="Power Amplifier -- 基础知识">
      <i class="fa fa-chevron-left"></i> Power Amplifier -- 基础知识
    </a></div>
      <div class="post-nav-item">
    <a href="/2021/03/10/gmid/" rel="next" title="gmid 设计方法">
      gmid 设计方法 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  

  </div>


          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#cadence-reference"><span class="nav-number">1.</span> <span class="nav-text">Cadence Reference</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#ads-reference"><span class="nav-number">2.</span> <span class="nav-text">ADS Reference</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#ads-dynamic-link"><span class="nav-number">3.</span> <span class="nav-text">ADS Dynamic Link</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#modelsim"><span class="nav-number">4.</span> <span class="nav-text">Modelsim</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#prepare-install-files"><span class="nav-number">4.1.</span> <span class="nav-text">Prepare install files</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85"><span class="nav-number">4.2.</span> <span class="nav-text">安装</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E7%94%9F%E6%88%90-license-file"><span class="nav-number">4.3.</span> <span class="nav-text">生成 license file</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#patch"><span class="nav-number">4.4.</span> <span class="nav-text">Patch</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%BF%AE%E6%94%B9%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F"><span class="nav-number">4.5.</span> <span class="nav-text">修改环境变量</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#hfss"><span class="nav-number">5.</span> <span class="nav-text">HFSS</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E5%BF%85%E8%A6%81%E7%9A%84%E8%BD%AF%E4%BB%B6"><span class="nav-number">5.1.</span> <span class="nav-text">安装必要的软件</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%9B%B4%E6%96%B0%E7%B4%A2%E5%BC%95"><span class="nav-number">5.2.</span> <span class="nav-text">更新索引</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%88%9B%E5%BB%BA%E8%B6%85%E9%93%BE%E6%8E%A5"><span class="nav-number">5.3.</span> <span class="nav-text">创建超链接</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%B0%86%E9%BB%98%E8%AE%A4-sh-%E6%94%B9%E4%B8%BA-bash"><span class="nav-number">5.4.</span> <span class="nav-text">将默认 sh 改为 bash</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-1"><span class="nav-number">5.5.</span> <span class="nav-text">安装</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E7%A0%B4%E8%A7%A3"><span class="nav-number">5.6.</span> <span class="nav-text">破解</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%BF%AE%E6%94%B9%E6%9D%83%E9%99%90"><span class="nav-number">5.7.</span> <span class="nav-text">修改权限</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%BF%AE%E6%94%B9%E9%80%9A%E9%85%8D%E7%AC%A6%E4%B8%8D%E5%8C%B9%E9%85%8D"><span class="nav-number">5.8.</span> <span class="nav-text">修改通配符不匹配</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#since-ptrace-is-used-to-monitor-intelmpi-cfx-run-set-the-permission-for-all-the-users-just-edit"><span class="nav-number">5.9.</span> <span class="nav-text">Since ptrace is used to monitor intelmpi CFX run, set the permission for all the users, just edit</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E7%BC%96%E8%BE%91-.bashrc-%E6%96%87%E4%BB%B6"><span class="nav-number">5.10.</span> <span class="nav-text">编辑 .bashrc 文件</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#synopsys-vcsverdi"><span class="nav-number">6.</span> <span class="nav-text">Synopsys VCS+Verdi</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#gcc-4.8.5-%E7%BC%96%E8%AF%91%E5%AE%89%E8%A3%85"><span class="nav-number">6.1.</span> <span class="nav-text">GCC-4.8.5 编译安装</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#vcsverdi-%E7%9A%84%E4%BB%BF%E7%9C%9F%E8%84%9A%E6%9C%AC"><span class="nav-number">6.2.</span> <span class="nav-text">vcs+verdi 的仿真脚本</span></a></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Fitz"
      src="/images/avatar.jpg">
  <p class="site-author-name" itemprop="name">Fitz</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">78</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">25</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">52</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/Starrynightzyq" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;Starrynightzyq" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:starrynightzyq@gmail.com" title="E-Mail → mailto:starrynightzyq@gmail.com" rel="noopener" target="_blank"><i class="fa fa-fw fa-envelope"></i>E-Mail</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://space.bilibili.com/57711842" title="Bilibili → https:&#x2F;&#x2F;space.bilibili.com&#x2F;57711842" rel="noopener" target="_blank"><i class="fa fa-fw fa-custom bilibili"></i>Bilibili</a>
      </span>
      <span class="links-of-author-item">
        <a href="http://wpa.qq.com/msgrd?v=3&uin=2421854978&site=qq&menu=yes" title="QQ → http:&#x2F;&#x2F;wpa.qq.com&#x2F;msgrd?v&#x3D;3&amp;uin&#x3D;2421854978&amp;site&#x3D;qq&amp;menu&#x3D;yes" rel="noopener" target="_blank"><i class="fa fa-fw fa-custom qq"></i>QQ</a>
      </span>
  </div>


  <div class="links-of-blogroll motion-element">
    <div class="links-of-blogroll-title">
      <i class="fa fa-fw fa-link"></i>
      Links
    </div>
    <ul class="links-of-blogroll-list">
        <li class="links-of-blogroll-item">
          <a href="http://leiblog.wang/" title="http:&#x2F;&#x2F;leiblog.wang" rel="noopener" target="_blank">Lei Blog</a>
        </li>
    </ul>
  </div>

      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        
  <div class="beian"><a href="http://beian.miit.gov.cn/" rel="noopener" target="_blank">苏ICP备20042287号 </a>
  </div>

<div class="copyright">
  
  &copy; 2018 – 
  <span itemprop="copyrightYear">2024</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Fitz</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-area-chart"></i>
    </span>
    <span title="站点总字数">251k</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-coffee"></i>
    </span>
    <span title="站点阅读时长">3:48</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> 强力驱动 v5.3.0
  </div>
  <span class="post-meta-divider">|</span>
  <div class="theme-info">主题 – <a href="https://mist.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Mist</a> v7.7.2
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="//cdn.jsdelivr.net/gh/theme-next/theme-next-pjax@0/pjax.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
  <script src="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/muse.js"></script>


<script src="/js/next-boot.js"></script>

<script src="/js/bookmark.js"></script>

  <script>
var pjax = new Pjax({
  selectors: [
    'head title',
    '#page-configurations',
    '.content-wrap',
    '.post-toc-wrap',
    '#pjax'
  ],
  switches: {
    '.post-toc-wrap': Pjax.switches.innerHTML
  },
  analytics: false,
  cacheBust: false,
  scrollTo : !CONFIG.bookmark.enable
});

window.addEventListener('pjax:success', () => {
  document.querySelectorAll('script[pjax], script#page-configurations, #pjax script').forEach(element => {
    var code = element.text || element.textContent || element.innerHTML || '';
    var parent = element.parentNode;
    parent.removeChild(element);
    var script = document.createElement('script');
    if (element.id) {
      script.id = element.id;
    }
    if (element.className) {
      script.className = element.className;
    }
    if (element.type) {
      script.type = element.type;
    }
    if (element.src) {
      script.src = element.src;
      // Force synchronous loading of peripheral JS.
      script.async = false;
    }
    if (element.getAttribute('pjax') !== null) {
      script.setAttribute('pjax', '');
    }
    if (code !== '') {
      script.appendChild(document.createTextNode(code));
    }
    parent.appendChild(script);
  });
  NexT.boot.refresh();
  // Define Motion Sequence & Bootstrap Motion.
  if (CONFIG.motion.enable) {
    NexT.motion.integrator
      .init()
      .add(NexT.motion.middleWares.subMenu)
      .add(NexT.motion.middleWares.postList)
      .bootstrap();
  }
  NexT.utils.updateSidebarPosition();
});
</script>




  




  
<script src="/js/local-search.js"></script>













    <div id="pjax">
  

  
      

<script>
  if (typeof MathJax === 'undefined') {
    window.MathJax = {
      loader: {
        source: {
          '[tex]/amsCd': '[tex]/amscd',
          '[tex]/AMScd': '[tex]/amscd'
        }
      },
      tex: {
        inlineMath: {'[+]': [['$', '$']]},
        tags: 'ams'
      },
      options: {
        renderActions: {
          findScript: [10, doc => {
            document.querySelectorAll('script[type^="math/tex"]').forEach(node => {
              const display = !!node.type.match(/; *mode=display/);
              const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], display);
              const text = document.createTextNode('');
              node.parentNode.replaceChild(text, node);
              math.start = {node: text, delim: '', n: 0};
              math.end = {node: text, delim: '', n: 0};
              doc.math.push(math);
            });
          }, '', false],
          insertedScript: [200, () => {
            document.querySelectorAll('mjx-container').forEach(node => {
              let target = node.parentNode;
              if (target.nodeName.toLowerCase() === 'li') {
                target.parentNode.classList.add('has-jax');
              }
            });
          }, '', false]
        }
      }
    };
    (function () {
      var script = document.createElement('script');
      script.src = '//cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js';
      script.defer = true;
      document.head.appendChild(script);
    })();
  } else {
    MathJax.startup.document.state(0);
    MathJax.texReset();
    MathJax.typeset();
  }
</script>

    

  

    </div>

  <!-- 页面点击小红心 -->
  <!-- <script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script> -->
  <script type="text/javascript" src="/js/clicklove.js"></script><!-- hexo-inject:begin --><!-- hexo-inject:end -->
</body>
</html>
